package com.xoa.service.nccloud;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface INCCloudService {

    // 单据动作单据动作 openapi请求路径
    public static final String billactionUrl = "/nccloud/api/pubapp/billaction/approve";
    // 添加定调资信息维护 openapi请求路径
    public static final String psndocWadocManageUrl = "/nccloud/api/hrwa/wadocManage/psndocWadocManage/add";
    // 新增人员调动办理 openapi请求路径
    public static final String psnStapplyUrl = "/nccloud/api/hrtrn/psnStapplyManage/psnStapply/add";
    // 新增人员离职办理 openapi请求路径
    public static final String psnLeaveUrl = "/nccloud/api/hrtrn/psnLeaveManage/psnLeave/add";
    // 员工转正申请 openapi请求路径
      public static final String regApplyUrl = "/nccloud/api/hrtrn/regApplymanage/regApply/add";
    // 查询HR组织
    public static final String queryOrgUrl = "/nccloud/api/riaorg/orgmanage/queryhrorg/query";
    // 根据业务单元主键查询部门
    public static final String queryDeptUrl = "/nccloud/api/riaorg/org/dept/queryDeptByPkOrg";
    // 人员查询全部接口
    public static final String queryPsndoctUrl = "/nccloud/api/uapbd/psndocmanage/psndoc/query";
    // 单人员查询全部接口
    public static final String queryOnePsndoctUrl = "/nccloud/api/uapbd/psndocmanage/psndoc/query";
    // 视图查询接口
    public static final String queryViewUrl = "/nccloud/api/hrpub/hrdoc/query/queryByViewName";
    // 证件照查询接口
    public static final String IdentificationPhoto = "/nccloud/api/hrhi/psndocManage/psnInfo/queryPhotoByPk";
    // 工资条查询接口
    public static final String queryWagesTipUrl = "/nccloud/api/hrwa/paydata/paydata/queryPaydata";

    /**
     * 请求openapi
     *
     * @throws Exception
     */
    String sendApi(String apiUrl, String requestBody) throws Exception;

    String dealResponseBody(String source, String security_key,String level) throws Exception;

    String dealRequestBody(String source, String security_key,String level) throws Exception;
    //公共查询表方法返回全部信息，传入表名
    List<Map<String,Object>> selectAll(Map map);
}
